package edu.unr.cater.npap.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import edu.unr.cater.npap.client.domain.DataAccessLog;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("edu.unr.cater.npap.client.domain.DataAccessLog")
@Component
public class DataAccessLogLocator extends Locator<DataAccessLog, Integer> {

    public DataAccessLog create(Class<? extends edu.unr.cater.npap.client.domain.DataAccessLog> clazz) {
        return new DataAccessLog();
    }

    public DataAccessLog find(Class<? extends edu.unr.cater.npap.client.domain.DataAccessLog> clazz, Integer id) {
        return DataAccessLog.findDataAccessLog(id);
    }

    public Class<edu.unr.cater.npap.client.domain.DataAccessLog> getDomainType() {
        return DataAccessLog.class;
    }

    public Integer getId(DataAccessLog dataAccessLog) {
        return dataAccessLog.getAccessId();
    }

    public Class<java.lang.Integer> getIdType() {
        return Integer.class;
    }

    public Object getVersion(DataAccessLog dataAccessLog) {
        return dataAccessLog.getVersion();
    }
}
